package com.linln.component.actionLog.annotation;

import com.linln.component.shiro.ShiroUtil;
import com.linln.modules.system.domain.User;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @author WuKai
 * @date 2021/6/10 11:34
 */
@Aspect
@Component
public class PeosomAop {
    @Pointcut("@annotation(com.linln.component.actionLog.annotation.PersonLog)")
    public void personLog(){}

    @After("personLog()")
    public void loginData(){
        final User subject = ShiroUtil.getSubject();
        System.out.println("后置通知..");
    }
}
